package com.irssproject.app.web.action.JSONWrappers;

import java.io.Serializable;
import java.util.List;

import com.irssproject.app.entitats.User;

public class UserJSON implements Serializable {
	
	private static final long serialVersionUID = -9190425351358579413L;

	private Long idusuari;
    private String login;
    private String email;
    private String name;
    private String place;
    private List<LabelJSON> etiquetes;
    private List<FeedJSON> feeds;
    
    public UserJSON(){
    	
    }
    public UserJSON(String login){
    	this.login = login;
    }
	public UserJSON(User usuari) {
		this.idusuari = usuari.getId();
		this.login = usuari.getLogin();
		this.email = usuari.getEmail();
		this.name = usuari.getName();
		this.place = usuari.getPlace();
			
	}
	
	public Long getIdusuari() {
		return idusuari;
	}
	public void setIdusuari(Long idusuari) {
		this.idusuari = idusuari;
	}
	public String getLogin() {
		return login;
	}
	public void setLogin(String login) {
		this.login = login;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPlace() {
		return place;
	}
	public void setPlace(String place) {
		this.place = place;
	}

    public List<LabelJSON> getEtiquetes(){
    	return etiquetes;
    }
    
	public void setEtiquetes(List<LabelJSON> etiquetes) {
		this.etiquetes = etiquetes;
	}
	public List<FeedJSON> getFeeds() {
		return feeds;
	}
	public void setFeeds(List<FeedJSON> feeds) {
		this.feeds = feeds;
	}
    
    

}
